use crate::traitFunc::{NewsArticle, Summary, Tweet};

mod killSame;
mod generic;
mod traitFunc;

fn main() {
    // killSame::compute_largest();

    // generic::invoke_point();

    generic::invoke_mixup();

    let tweet = Tweet {
        username: String::from("horse_ebooks"),
        content: String::from("i love you, mike!"),
        reply: false,
        retweet: true,
    };

    println!("{}",tweet.summarize());

    let article = NewsArticle {
        headline: String::from("horse_ebooks"),
        content: String::from("i love you, mike!"),
        location: String::from("北京"),
        author: String::from("莫言"),
    };

    println!("{}",article.summarize_author());

    killSame::compute_largest_two();

}
